var foo:(a:{():number; (i:number):number; })=>number; foo = function(a){return 5};